package com.turing.post.account.util;

import java.math.BigInteger;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

@Remote
@Local
public interface BankAssocDao {

	/**
	 * 新增银行签约关联表
	 * 
	 * @param ba
	 * @throws PCPSApplicationException
	 */
	public void insert(BankAssoc ba) throws PCPSApplicationException;

	/**
	 * 更新银行签约关联表
	 * 
	 * @param ba
	 * @throws PCPSApplicationException
	 */
	public void update(BankAssoc ba) throws PCPSApplicationException;

	/**
	 * 删除银行签约关联表
	 * 
	 * @param ba
	 * @throws PCPSApplicationException
	 */
	public void delete(BankAssoc ba) throws PCPSApplicationException;

	/**
	 * 根据银行管理ID和主账号获取关联关系
	 * 
	 * @param bankManageId
	 * @param masterAccNo
	 * @return
	 */
	public BankAssoc getBankAssoc(BigInteger bankManageId,
			BigInteger masterAccNo);

	/**
	 * 根据主键获取关联关系
	 * @param ba
	 * @return
	 */
	public BankAssoc getAppContractBankByPk(BankAssoc ba);
}
